import Vue from 'vue'
import Router from 'vue-router'
import Home from '../views/Home'
import Cinema from '../views/Cinema'
import Me from '../views/Me'
import CinemaDetail from '../views/CinemaDetail'
import MovieDetail from '../views/MovieDetail'
import NoData from '../views/NoData'
Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      component: Home
    },
    {
      path : '/movie/detail/:id',
      name: 'detail',
      component : MovieDetail
    },
    {
      path:'/cinema',
      component:Cinema
    },
    {
      path : '/cinema/detail/:id',
      name: 'cdetail',
      component: CinemaDetail
    },
    {
      path:'/me',
      component:Me
    },
    {
      path:'/no',
      component:NoData
    }
  ]
})
